Release 10.1A: OpenEdge Data Management:
SQL Reference
WITH clause
Enables table-level locking when a finer control of the types of locks acquired on an object is required. These locking hints override the current transaction isolation level for the session.
Syntax
The locking hint clause, such as for
READPAST,can only be specified in the mainSELECTstatement, but not in the subquerySELECTstatement in the “search condition” of theWHEREclause, as shown in the following syntax:
search_conditionThe
READPASTlocking hint skips locked rows. This option causes a transaction to skip rows locked by other transactions that would ordinarily appear in the result set, rather than block the transaction waiting for the other transactions to release their locks on these rows. TheREADPASTlock hint applies only to transactions operating atREAD COMMITTEDisolation and will read only past row-level locks. Applies only to theSELECTstatement.WAIT timeoutOverride the default lock-wait time out. The timeout value is in seconds and can be 0 or any positive number.
NOWAITCauses the
ExampleSELECTstatement to skip (read past) the row immediately if a lock cannot be acquired on a row in the selection set because of the lock held by some other transaction. The default behavior is for the transaction to wait until it gets the required lock or until it times out waiting for the lock.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |